package model

import "react-blog-server/common/timex"

type HotTopic struct {
	ID        int64      `gorm:"primary_key;not_null;auto_increment" json:"id"`
	Topic     string     `json:"topic"`
	Status    int        `gorm:"default:1;" json:"status"` // 状态(-1:已删除)
	CreatedAt timex.Time `gorm:"comment:'创建时间'" json:"createAt"`
	UpdatedAt timex.Time `gorm:"comment:'修改时间'" json:"updatedAt"`
}

func (c *HotTopic) TableName() string {
	return "hot_topic"
}
